package libregnummap;
import java.awt.Color;
import java.awt.Polygon;
/*
 * AlphaPolygon.java
 *
 * Created on March 4, 2009, 5:32 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

/**
 *
 * @author alvaro
 */
public class AlphaPolygon extends PrintableObject {
    
    private int[] xcoords, ycoords;
    private int num;
    private float alpha;
    private Polygon poly;
    
    /** Creates a new instance of AlphaPolygon */
    AlphaPolygon(int xcoords[], int ycoords[], int num, Color c, boolean filled, float alpha, String type) {
        this.xcoords = xcoords;
        this.ycoords = ycoords;
        this.num = num;
        this.alpha = alpha;
        
        this.poly = new Polygon(xcoords, ycoords, num);
        
        setColor(c);
        setType(type);
    }

    public float getAlpha() {
        return alpha;
    }

    public int getNum() {
        return num;
    }

    public Polygon getPoly() {
        return poly;
    }

    public int[] getXcoords() {
        return xcoords;
    }

    public int[] getYcoords() {
        return ycoords;
    }

    public void setAlpha(float alpha) {
        this.alpha = alpha;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void setPoly(Polygon poly) {
        this.poly = poly;
    }

    public void setXcoords(int[] xcoords) {
        this.xcoords = xcoords;
    }

    public void setYcoords(int[] ycoords) {
        this.ycoords = ycoords;
    }
    
    AlphaPolygon(Polygon polygon, Color c, boolean filled, float alpha, String type) {
        this.alpha = alpha;
        
        this.poly = polygon;
        
        setColor(c);
        setType(type);
    }
    
}
